package com.seven.webhook.simple.model.enm;

import com.baomidou.mybatisplus.core.enums.IEnum;
import com.seven.webhook.utils.json.BaseJsonEnum;

public enum RuleSymbolEnum implements IEnum<Integer>, BaseJsonEnum {
    MORE(0, ">"),
    EQUAL(1, "="),
    LESS(2, "<"),
    MORE_EQUAL(3, ">="),
    LESS_EQUAL(4, "<="),
    UNEQUAL(5, "!="),
    ;
    private Integer value;
    private String des;

    RuleSymbolEnum(Integer value, String des) {
        this.value = value;
        this.des = des;
    }

    @Override
    public Integer getValue() {
        return value;
    }

    @Override
    public String getCode() {
        return this.name();
    }

    @Override
    public String getDes() {
        return des;
    }
}
